package com.service.impl;

import com.bean.Seckill;
import com.dao.SeckillMapper;
import com.service.SeckillService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Samsara
* @description 针对表【seckill(秒杀商品表)】的数据库操作Service实现
* @createDate 2023-01-18 03:30:56
*/
@Service
public class SeckillServiceImpl implements SeckillService {

    @Resource
    private SeckillMapper seckillMapper;

    @Override
    public Integer insertBatch(List<Seckill> seckillList) {
        return seckillMapper.insertBatch(seckillList);
    }

    @Override
    public Integer updateBatch(List<Seckill> seckillList) {
        return seckillMapper.updateBatch(seckillList);
    }

    @Override
    public Integer deleteBatch(List<Seckill> seckillList) {
        return seckillMapper.deleteBatch(seckillList);
    }

    @Override
    public List<Seckill> selectSeckillList(List<Seckill> seckillList) {
        return seckillMapper.selectSeckillList(seckillList);
    }

    @Override
    public List<Seckill> selectSeckillListAndUserList(List<Seckill> seckillList,Integer start,Integer end) {
        return seckillMapper.selectSeckillListAndUserList(seckillList,start,end);
    }

    @Override
    public List<Seckill> selectSeckillListAndGoodsList(List<Seckill> seckillList, Integer start, Integer end) {
        return seckillMapper.selectSeckillListAndGoodsList(seckillList,start,end);
    }
}
